Skip to content

Add test for http2.server.stream.finish diagnostics channel#740

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/support-http2-server-stream-finish
Draft

Add test for http2.server.stream.finish diagnostics channel#740
Copilot wants to merge 2 commits intomasterfrom
copilot/support-http2-server-stream-finish

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 12, 2026

Node.js added the http2.server.stream.finish diagnostics channel in nodejs/node#58560, which fires when ServerHttp2Stream.respond() succeeds. This adds test coverage verifying urllib works correctly with this channel.

  • Subscribe to http2.server.stream.finish in an H2 test server scenario
  • Make HEAD and GET requests via HttpClient with allowH2: true
  • Assert published messages contain valid stream (ServerHttp2Stream), headers (object), and flags (number)

Copilot AI changed the title [WIP] Add support for http2.server.stream.finish diagnostics channel Add test for http2.server.stream.finish diagnostics channel Apr 12, 2026
Copilot AI requested a review from fengmk2 April 12, 2026 12:10
@fengmk2 fengmk2 added this to the v5 milestone Apr 12, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 12, 2026

Open in StackBlitz

npm i https://pkg.pr.new/node-modules/urllib@740

commit: 6b0e217

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.60%. Comparing base (ca63296) to head (6b0e217).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #740   +/-   ##
=======================================
  Coverage   94.60%   94.60%           
=======================================
  Files          10       10           
  Lines         723      723           
  Branches      226      226           
=======================================
  Hits          684      684           
  Misses         36       36           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support http2.server.stream.finish diagnostics channel

2 participants